package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Role;


import java.util.List;


public interface RoleManageService {
    PageResult findPage(QueryPageBean pageBean);

    Result findPermission();


    void addRole(Integer[] permissionIds, Role role);

    Role getRole(int id);

    List<Integer> findPermissionIdsByRoleId(Integer id);

    void edit(Role role, Integer[] permissionIds);

    void delete(int id);
}
